<?php
Header("content-type: application/x-javascript");
$IP=$_SERVER['REMOTE_ADDR'];
$salida = 'var laIP = "' . $IP . '";';
echo $salida;
?>